solving ln and e equations